package com.izhengyin.dddmessage.application;

import com.izhengyin.dddmessage.application.command.SendMessageCommand;
import com.izhengyin.dddmessage.config.Result;

/**
 * @author zhengyin
 * Created on 2021/7/22
 */
public interface MessageCommandService {
    /**
     * 创建消息
     *
     * @param command
     */
    void createMessage(SendMessageCommand command);

    /**
     * 撤回消息
     * @param userId
     * @param messageId
     */
    Result<Void> recallMessage(int userId , long messageId);
}
